﻿<%@ WebHandler Language="C#" Class="deleteUser" %>

using System;
using System.Web;

using AMCBO;
using AMCOBJ;

public class deleteUser : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        //context.Response.ContentType = "text/plain";
        //context.Response.Write("Hello World");
        Guid userid = Guid.Empty;
        createusers obj_user = new createusers();
        users user_obj = new users();
        if (!string.IsNullOrEmpty(context.Request.QueryString["uid"]))
        {
            userid = new Guid(context.Request.QueryString["uid"].ToString());
        }
        user_obj.UserID = userid;
        int x = obj_user.deleteUser(user_obj);
        if (x == 0)
        {
            context.Response.Write("y");
        }
        else
        {
            context.Response.Write("n");
        }
        
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}